<template>
  <div id="exchangeList">
    <x-header :left-options="{backText: ''}" class="vux-1px-b">兑换列表</x-header>
    <tab>
      <tab-item selected >待发货</tab-item>
      <tab-item>待收货</tab-item>
    </tab>
    <div class="exchange_con">
      <ul>
        <li v-for="(item, index) in 10" :key="index">
          <div class="exchange_img"><img src="" alt=""></div>
          <div class="exchange_right">
            <h2>标题</h2>
            <span>待发货</span>
            <p>兑换比例 1:3<i>2019年9月22日19:24:40</i></p>
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
import { Tab, TabItem } from 'vux'

export default {
  name: 'exchangeList',
  components: {
    Tab, TabItem
  },
  methods: {
  }
}
</script>

<style lang="less" scoped="scoped">
#exchangeList{
  .exchange_con{
    ul{
      padding: .2rem 0;
      li{
        width: 100%;
        background: #fff;
        margin-bottom: .2rem;
        font-size: 0;
        div.exchange_img{
          display: inline-block;
          width: 2.025rem;
          height: 2.025rem;
          padding: .2rem;
          vertical-align: middle;
          img{
            width: 100%;
            height: 100%;
          }
        }
        div.exchange_right{
          width: calc(100% - 2.025rem);
          display: inline-block;
          padding: .2rem;
          padding-left: 0;
          vertical-align: middle;
          height: 2.025rem;
          h2{
            font-size: .3rem;
            font-family: Source Han Sans SC;
            font-weight: 400;
            color: rgba(0,0,0,1);
            line-height: .4375rem;
          }
          span{
            display: inline-block;
            font-size: .275rem;
            font-family: Source Han Sans SC;
            font-weight: 400;
            color: rgba(255,156,0,1);
            padding: .3rem 0;
          }
          p{
            font-size: .275rem;
            font-family: Source Han Sans SC;
            font-weight: 400;
            color: rgba(255,0,0,1);
            i{
              font-size: .175rem;
              font-family: Microsoft YaHei;
              font-weight: 400;
              color: rgba(0,0,0,1);
              float: right;
            }
          }
        }
      }
    }
  }
}
</style>
